<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>标题</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/statics/layui/font/font.css" media="all"/>
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <style type="text/css">
        html, body {
            height: 100%;
        }

        .chooseBox {
            border: 1px solid #333;
            height: 300px;
            padding: 10px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            overflow-y: auto;
        }

        .leftBox > p {
            line-height: 30px;
            padding-left: 20px;
            cursor: pointer;
        }

        .leftBox > p:hover {
            background: #ddd;
        }

        .leftBox > p.selected {
            background: #d5d5d5;
        }
    </style>
</head>
<body>
<div class="layui-fluid" style="height:97%; margin-top: 10px;">
    <form class="layui-form" lay-filter="formData" method="post" target="_blank">
        <input type="hidden" name="token" id="token" />
        <div class="layui-form-item">
            <label class="layui-form-label required">表名:</label>
            <div class="layui-input-block">
                <input type="text" name="tables" lay-verify="required" autocomplete="off" class="layui-input required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">模块名称：</label>
            <div class="layui-input-block">
                <input type="text" name="projectName" lay-verify="required" placeholder="模块名称，可为空" autocomplete="off" class="layui-input required"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">包名：</label>
            <div class="layui-input-block">
                <input type="text" name="packageName" lay-verify="required" autocomplete="off" class="layui-input required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">开发者</label>
            <div class="layui-input-block">
                <input type="text" name="author" lay-verify="required" autocomplete="off" class="layui-input required">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script src="/static/js/main.js"></script>
<script>
    var sessionFun={};
    var configure={};
    layui.use(['form', 'sessionFun', 'configure', 'configureCom'], function () {
        window.$ = layui.$;
        var form = layui.form;
        configure = layui.configure;
        sessionFun = layui.sessionFun;
        var tableName = sessionFun.get(configure.SESSION_LIST_DATA);
         if(tableName!=null&&tableName!=''){
            $("[name='tables']").val(tableName);
         }else {
             top.layer.close();
         }
        form.render();
    });

    function getData() {
        var token = sessionFun.get(configure.SESSION_TOKEN) ? sessionFun.get(configure.SESSION_TOKEN).token : '';
        $("#token").val(token);
        $("form").attr("action",configure.GEN_HTTP_CODE);
        $("form").submit();

    }
</script>
</body>
</html>
